#pragma once

class rivet {
public:
	explicit rivet(double weight_ = 0, double diameter_ = 3, double endfixity_ = 2.1)
		: weight(weight_),
		diameter(diameter_ / 1000.0),
		endfixity(endfixity_)
	{
	}
	double& getWeight()
	{
		return weight;
	}
	const double& getWeight() const
	{
		return weight;
	}
	double& getDiameter()
	{
		return diameter;
	}
	const double& getDiameter() const
	{
		return diameter;
	}
	double& getEndFixity()
	{
		return endfixity;
	}
	const double& getEndFixity() const
	{
		return endfixity;
	}
private:
	double weight;
	double diameter;
	double endfixity;

};